#pragma once

#include "EglContext.h"

class EglDisplay;
class GLEScontext;

struct ThreadInfo {
    ThreadInfo():eglDisplay(NULL),glesContext(NULL),objManager(NULL){}

    void updateInfo(ContextPtr eglctx,
                    EglDisplay* dpy,
                    GLEScontext* glesCtx,
                    ShareGroupPtr share,
                    ObjectNameManager* manager);

    ContextPtr           eglContext;
    EglDisplay*          eglDisplay;
    GLEScontext*         glesContext;
    ShareGroupPtr        shareGroup;
    ObjectNameManager*   objManager;
};

ThreadInfo* getThreadInfo();